#!/bin/bash


if [ $# -gt 0 ];then
	# cluster mode
	MYID=$1
	echo $1 >> /tmp/zookeeper/myid
fi

#tail -f /tmp/zookeeper/myid
/opt/zookeeper/bin/zkServer.sh start-foreground